package com.itheima.mp.domain.po;

import lombok.Data;

import java.time.LocalDateTime;

@Data
public class User {

    /**
     * 用户id
     */
    private Long id;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 注册手机号
     */
    private String phone;

    /**
     * 详细信息
     */
    private String info;

    /**
     * 使用状态（1正常 2冻结）
     */
    private Integer status;

    /**
     * 账户余额
     */
    private Integer balance;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    @Override
    public String toString() {
        return "User{\n" +
                "id=" + id + "\n" +
                " username='" + username + "'\n" +
                " password='" + password + "'\n" +
                " phone='" + phone + "'\n" +
                " info='" + info + "'\n" +
                " status=" + status + "\n" +
                " balance=" + balance + "\n" +
                " createTime=" + createTime + "\n" +
                " updateTime=" + updateTime + "\n" +
                '}';
    }


}
